import { Component } from "vue";

interface FileType {
  [key: string]: Component;
}

// 导入 globComponents 下面的 所有 .vue文件
const files1: Record<string, FileType> = import.meta.globEager(
  "../views/*.vue"
);
const files2: Record<string, FileType> = import.meta.globEager(
  "../views/*/*.vue"
);
const files3: Record<string, FileType> = import.meta.globEager(
  "../views/*/*/*.vue"
);
const files4: Record<string, FileType> = import.meta.globEager(
  "../views/*/*/*/*.vue"
);
const files5: Record<string, FileType> = import.meta.globEager(
  "../views/*/*/*/*/*.vue"
);

const a = Object.assign({}, files1, files2, files3, files4, files5)
export default a
